@layout("/common/_form.html",{js:["/assets/modular/templateInfo/templateInfo_add.js"]}){

<form class="layui-form" id="templateInfoForm" lay-filter="templateInfoForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input id="id" name="id" type="hidden"/>
                    <!--                    存储路径-->
                    <input id="filePath" name="filePath" type="hidden"/>
                    <!--                    文件唯一标识id-->
                    <input id="finalName" name="finalName" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label" style="color: red">*模板名称</label>
                        <div class="layui-input-block">
                            <input id="templateName" name="templateName" lay-verify="required" placeholder="" type="text"
                                   class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label" style="color: red">*模板编号</label>
                        <div class="layui-input-block">
                            <input id="templateCode" name="templateCode" lay-verify="required" placeholder="模板编号唯一" type="text" class="layui-input"/>
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md12">

                        <label class="layui-form-label">
                            <div class="layui-upload" style="display: inline-block;margin-top: -8px;">
                                <button type="button" class="layui-btn layui-btn-normal"
                                        id="selectFileBtn">选择文件
                                </button>
                                <button id="uploadFile" type="button" class="layui-hide"/>
                            </div>
                        </label>

                        <div class="layui-input-block">
                            <!--                    文件名称-->
                            <input id="fileName" name="fileName" placeholder=""
                                   type="text"
                                   class="layui-input readonly"
                                   readonly/>
                        </div>

                    </div>

                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn layui-btn-sm" type="button" id="saveBtn">&emsp;提交&emsp;</button>
        <button class="layui-hide" id="validateBtn" lay-filter="btnSubmit" lay-submit/>
        <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;
        </button>
    </div>

</form>

@}